from rest_framework import serializers

from debunk.models import Spit, SpitComments


class SpitListSerializer(serializers.ModelSerializer):
    '''列表序列化器'''
    class Meta:
        model = Spit
        fields = '__all__'


class SpitCommentsListSerializer(serializers.ModelSerializer):
    """吐槽详情页评论列表"""

    class Meta:
        model = SpitComments
        fields = '__all__'